#coding:utf-8

# 2018.08.28 15:25:46 ?????????
#Embedded file name: cfghelper.pyc
import re

class Reg:

    def __init__(self, reg):
        self.reg = reg

    def check(self, haystack):
        if re.match(self.reg, haystack) == None:
            return False
        return True


class Group:

    def __init__(self, cmdGroup):
        self.group = cmdGroup
        self.point = 0

    def getLen(self):
        return   len(self.group)

    def poll(self):
        if self.point < self.getLen():
            self.point += 1
            return self.group[self.point - 1]
        return [False, False, False]


class FullMatch:

    def __init__(self, needle):
        self.needle = needle

    def getNeedle(self):
        return self.needle

class ReMatch:
    def __init__(self, reg):
        self.reg = reg

    def check(self, haystack):
        if haystack:
            if re.search(self.reg, haystack) == None:
                return False
            return True
        return False

# decompiled 1 files: 1 okay, 0 failed, 0 verify failed
# 2018.08.28 15:25:46 ?????????
